// @ts-ignore
/* eslint-disable */
import request from '@/request'

/** addStudent POST /api/student/add */
export async function addStudentUsingPost(
  body: API.StudentAddRequest,
  options?: { [key: string]: any }
) {
  return request<API.BaseResponseLong_>('/api/student/add', {
    method: 'POST',
    headers: {
      'Content-Type': 'application/json',
    },
    data: body,
    ...(options || {}),
  })
}

/** deleteStudent POST /api/student/delete */
export async function deleteStudentUsingPost(
  body: API.DeleteRequest,
  options?: { [key: string]: any }
) {
  return request<API.BaseResponseBoolean_>('/api/student/delete', {
    method: 'POST',
    headers: {
      'Content-Type': 'application/json',
    },
    data: body,
    ...(options || {}),
  })
}

/** editStudent POST /api/student/edit */
export async function editStudentUsingPost(
  body: API.StudentEditRequest,
  options?: { [key: string]: any }
) {
  return request<API.BaseResponseBoolean_>('/api/student/edit', {
    method: 'POST',
    headers: {
      'Content-Type': 'application/json',
    },
    data: body,
    ...(options || {}),
  })
}

/** getStudentById GET /api/student/get */
export async function getStudentByIdUsingGet(
  // 叠加生成的Param类型 (非body参数swagger默认没有生成对象)
  params: API.getStudentByIdUsingGETParams,
  options?: { [key: string]: any }
) {
  return request<API.BaseResponseStudent_>('/api/student/get', {
    method: 'GET',
    params: {
      ...params,
    },
    ...(options || {}),
  })
}

/** getMyStudent GET /api/student/get/my */
export async function getMyStudentUsingGet(options?: { [key: string]: any }) {
  return request<API.BaseResponseStudentVO_>('/api/student/get/my', {
    method: 'GET',
    ...(options || {}),
  })
}

/** getStudentVOById GET /api/student/get/vo */
export async function getStudentVoByIdUsingGet(
  // 叠加生成的Param类型 (非body参数swagger默认没有生成对象)
  params: API.getStudentVOByIdUsingGETParams,
  options?: { [key: string]: any }
) {
  return request<API.BaseResponseStudentVO_>('/api/student/get/vo', {
    method: 'GET',
    params: {
      ...params,
    },
    ...(options || {}),
  })
}

/** listStudentByPage POST /api/student/list/page */
export async function listStudentByPageUsingPost(
  body: API.StudentQueryRequest,
  options?: { [key: string]: any }
) {
  return request<API.BaseResponsePageStudent_>('/api/student/list/page', {
    method: 'POST',
    headers: {
      'Content-Type': 'application/json',
    },
    data: body,
    ...(options || {}),
  })
}

/** listStudentVOByPage POST /api/student/list/page/vo */
export async function listStudentVoByPageUsingPost(
  body: API.StudentQueryRequest,
  options?: { [key: string]: any }
) {
  return request<API.BaseResponsePageStudentVO_>('/api/student/list/page/vo', {
    method: 'POST',
    headers: {
      'Content-Type': 'application/json',
    },
    data: body,
    ...(options || {}),
  })
}

/** updateStudent POST /api/student/update */
export async function updateStudentUsingPost(
  body: API.StudentUpdateRequest,
  options?: { [key: string]: any }
) {
  return request<API.BaseResponseBoolean_>('/api/student/update', {
    method: 'POST',
    headers: {
      'Content-Type': 'application/json',
    },
    data: body,
    ...(options || {}),
  })
}
